/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package models;

import java.io.Serializable;
import java.util.Date;

/**
 *
 * @author simone
 */
public class PrenotatoDTO implements Serializable
{  
    private hotelDTO hotel;
    private tourDTO tour;
    private TripDTO trip;
    private Date dal;
    private Date al;
    private int num_persone;
    private UserDTO user;
    private PacchettoDTO packet;

    
    public PrenotatoDTO(){
        
    }
    
    public PrenotatoDTO(hotelDTO h,TripDTO t, tourDTO e){
        setHotel(h);
        setTrip(t);
        setTour(e);
    }

    public hotelDTO getHotel() {
        return hotel;
    }

    public void setHotel(hotelDTO hotel) {
        this.hotel = hotel;
    }

    public tourDTO getTour() {
        return tour;
    }

    public void setTour(tourDTO tour) {
        this.tour = tour;
    }

    public TripDTO getTrip() {
        return trip;
    }

    public void setTrip(TripDTO trip) {
        this.trip = trip;
    }

    public Date getDal() {
        return dal;
    }

    public void setDal(Date dal) {
        this.dal = dal;
    }

    public Date getAl() {
        return al;
    }

    public void setAl(Date al) {
        this.al = al;
    }

    public int getNum_persone() {
        return num_persone;
    }

    public void setNum_persone(int num_persone) {
        this.num_persone = num_persone;
    }

    
    public UserDTO getUser() {
        return user;
    }

    public void setUser(UserDTO user) {
        this.user = user;
    }

    public PacchettoDTO getPacket() {
        return packet;
    }

    public void setPacket(PacchettoDTO packet) {
        this.packet = packet;
    }
    
    
    public String getName()
    {
        String n = packet.getName();
        return n;
    }
    
}
